<?php
	Connection::getConnect();
	$sql = "SELECT *, DATEDIFF(NOW(), date_enter) as isnew FROM item_details JOIN item_inventory USING(iid) ORDER BY isnew LIMIT 10";
    Connection::setQuery($sql);
	$lists = Connection::fetchAll(MYSQL_ASSOC);
 ?>
